transform Date Range
A transformation that can be applied to a DateRange to derive a related DateRange. For example, a date range of "last month" can be transformed to "last 6 months" by applying a transform with baseUnit=month, numBaseUnits=6, keepMonthEndAligned=true. This function can also apply DateRangePeriodParameters to shift or multiply a date range by an offset and multiplier. This function cannot validate that the combination of supplied parameters are a valid transformation for this date range.
Since
MD2024
Return
Returns the new/transformed DateRange
Parameters
the type of period (e.g. year/month/quarter/week/day).
the number of units to offset from a base date (typically DateRangeOption) (e.g. 2 for DR_LAST_TWO_YEARS from DR_LAST_YEAR base).
default: false - typically used with calendar YEAR/QUARTER/MONTH options.
Supply the DateRangePeriodParameters which contain information on how this DateRange should be transformed